package com.ithome.pojo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author sandu
 * @since 2020-06-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 用户id
     */
    @TableId(value = "uid", type = IdType.AUTO)
    private Integer uid;

    /**
     * 用户名
     */
    @TableField("uName")
    private String uName;

    /**
     * 头像地址
     */
    @TableField("uIcon")
    private String uIcon;

    /**
     * 用户等级
     */
    @TableField("uLevel")
    private Integer uLevel;

    /**
     * 邮箱
     */
    @TableField("uEmail")
    private String uEmail;

    /**
     * 电话号码
     */
    @TableField("uPhone")
    private String uPhone;

    /**
     * 注册时间
     */
    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    /**
     * 密码
     */
    @TableField("uPassword")
    private String uPassword;

    /**
     * 分组
     */
    @TableField("uGroup")
    private Integer uGroup;


}
